﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/UserLayout.Master" AutoEventWireup="true" CodeBehind="EditProfile.aspx.cs" Inherits="DigitalAnts.User.EditProfile" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Panel DefaultButton="Submit"></asp:Panel>

					<div class="col-main">
												<div class="my-account"><div class="page-title">
    <h1>Thay đổi thông tin tài khoản</h1>
</div>
    <div class="fieldset">
        <h2 class="legend">Thay đổi thông tin cá nhân</h2>
        <ul class="form-list">
            <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label for="firstname" class="required">Họ
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="reg" ControlToValidate="txtFirstName" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtFirstName" runat="server" ValidationExpression="^[\s\S]{1,10}$" Text="1-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
        <div class="input-box">
            <asp:TextBox ID="txtFirstName" runat="server" CssClass="input-text required-entry"/>
            
        </div>
    </div>
    <div class="field name-lastname">
        <label for="lastname" class="required">Tên
         <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="reg" ControlToValidate="txtLastName" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ControlToValidate="txtLastName" runat="server" ValidationExpression="^[\s\S]{1,10}$" Text="1-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
        <div class="input-box">
            <asp:TextBox ID="txtLastName" runat="server" CssClass="input-text required-entry"/>
        </div>

    </div>
</div>
                </li>

                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label for="email_address" class="required">Email
        <asp:RequiredFieldValidator ID="rfvemail" runat="server" ValidationGroup="reg" ControlToValidate="txtEmail" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
                         <asp:RegularExpressionValidator ID="revemail" runat="server" ControlToValidate="txtEmail" ValidationGroup="reg" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic" >Không đúng định dạng email</asp:RegularExpressionValidator>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtEmail" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-30 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtEmail" runat="server" Enabled="false" CssClass="input-text validate-email required-entry" ToolTip="Email Address"/>
            
        </div>
    </div>
    <div class="field name-lastname">
        <label class="required">Ngày sinh
         <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                         ControlToValidate="txtBirthDay" SetFocusOnError="True"  Display="Dynamic" ValidationGroup="reg">*</asp:RequiredFieldValidator>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ControlToValidate="txtBirthDay" runat="server" ValidationExpression="^[\s\S]{8,10}$" Text="8-10 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtBirthDay" runat="server" CssClass="input-text required-entry"/>
                    </div>

    </div>
</div>
                </li>
                  
                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
         <label class="required">Số điện thoại
         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtPhoneNumber" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="regEM4" runat="server"  ControlToValidate="txtPhoneNumber"  SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg">Phải là số.</asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" ControlToValidate="txtPhoneNumber" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
         </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="input-text required-entry"/>
                    </div>
        
    </div>
    <div class="field name-lastname">
        
        <label class="required">Số điện thoại nhà riêng
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtHomePhone" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                                                    ControlToValidate="txtHomePhone" ErrorMessage="Phải là số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator10" ControlToValidate="txtHomePhone" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtHomePhone" runat="server" CssClass="input-text required-entry"/>
                    </div>
    </div>
</div>
                </li>   
                <li class="fields">
                    <div class="customer-name">
    <div class="field name-firstname">
        <label class="required">Số chứng minh
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txtIndentityCard" ErrorMessage="*" ValidationGroup="reg"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                                    ControlToValidate="txtIndentityCard" ErrorMessage="Phải là số." 
                                                    SetFocusOnError="True" 
                ValidationExpression="^\d+$" ValidationGroup="reg"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" ControlToValidate="txtIndentityCard" runat="server" ValidationExpression="^[\s\S]{9,12}$" Text="9-12 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
        </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtIndentityCard" runat="server" CssClass="input-text required-entry"/>
                    </div>
    </div>
    <div class="field name-lastname">
         <label class="required">Địa chỉ
         <asp:RequiredFieldValidator ID="Required7" runat="server" ValidationGroup="reg" ControlToValidate="txtAdress" Text="*" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator ID="RegularExpressionValidator9" ControlToValidate="txtAdress" runat="server" ValidationExpression="^[\s\S]{9,30}$" Text="9-50 ký tự" SetFocusOnError="true" Display="Dynamic" ValidationGroup="reg" />
         </label>
                    <div class="input-box">
                        <asp:TextBox ID="txtAdress" runat="server" CssClass="input-text required-entry"/>
                    </div>
    </div>
</div>
                </li>

               
                <li class="fields">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate> 
                    <div class="customer-name">
    <div class="field name-firstname">
          <label class="required"><em>*</em>Quốc gia</label>
                    <div class="input-box">
                        <asp:DropDownList ID="ddtCountry" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddtCountry_SelectedIndexChanged">
                        </asp:DropDownList>
                    </div>

    </div>
    <div class="field name-lastname">
         <label class="required"><em>*</em>Thành phố</label>
                    <div class="input-box">
                        <asp:DropDownList ID="ddlCity" runat="server">
                        </asp:DropDownList>
                    </div>

    </div>
</div>          
                    </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddtCountry" EventName="SelectedIndexChanged" />
                    </Triggers>
                    </asp:UpdatePanel>  
                </li>
                 
        </ul>
    </div>
    
    <div class="buttons-set">
        <p class="required">* Không được để trống</p>
        <asp:Button ID="Submit" runat="server" Text="Xác Nhận" onclick="Submit_Click" ValidationGroup="reg"/>
    </div>
</div>					</div>
					
</asp:Content>
